package com.martin.lib_base.ui.screen

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import dev.utils.app.BarUtils
import dev.utils.app.SizeUtils

/**
 * @author：孟凡华
 * @date：2023/7/6
 * @desc：Status占位
 */

@Composable
fun StatusView(bgColor: Color = Color.Transparent) {
    Box(
        modifier = Modifier
            .height(
                SizeUtils.px2dp(
                    BarUtils
                        .getStatusBarHeight()
                        .toFloat()
                ).dp
            )
            .fillMaxWidth()
            .background(bgColor)
    )
}